package net.homelinux.chaoswg.io.renga.core.gui.operations.factories;

import net.homelinux.chaoswg.io.higherorderfunctions.AbstractUnaryFunction;
import net.homelinux.chaoswg.io.higherorderfunctions.ConstantFunction;
import net.homelinux.chaoswg.io.higherorderfunctions.UnaryFunction;
import net.homelinux.chaoswg.io.renga.core.gui.operations.Control;
import net.homelinux.chaoswg.io.renga.krypto.gui.operations.LoopOperation;

public class LoopOperationFactory extends AbstractUnaryFunction<LoopOperation, ConstantFunction<Control>> implements UnaryFunction<LoopOperation, ConstantFunction<Control>> {

    public LoopOperation apply(final ConstantFunction<Control> arg0) throws IllegalArgumentException {
        return new LoopOperation (arg0.apply ());
    }

}
